/**  
* @Title:  IDCChildNode.java
* @Package com.hugedata.cdn.outerfacade.serviceadapter.soapagent.resp
* @Description: TODO(用一句话描述该文件做什么)
* @author Wangxiaoming
* @date  Sep 2, 2014 8:13:37 PM
* @version V1.0  
* Update Logs:
* ****************************************************
* Name:
* Date:
* Description:
******************************************************
*/
package com.hugedata.cdn.outerfacade.serviceadapter.soapagent.resp;

import java.io.Serializable;

import com.hugedata.imsp.jabberc.service.node.IDCNode;


/**
 * @ClassName: IDCChildNode
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author Wangxiaoming
 * @date Sep 2, 2014 8:13:37 PM
 *
 */
public class IDCChildNode implements Serializable
{
    private String areaCode, ispCode;
    private int mnCount;

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getIspCode() {
        return ispCode;
    }

    public void setIspCode(String ispCode) {
        this.ispCode = ispCode;
    }

    public int getMnCount() {
        return mnCount;
    }

    public void setMnCount(int mnCount) {
        this.mnCount = mnCount;
    }

    public class JsonEntity {
        public String area_code, isp_code;
        public int mn_count;
    }

    public String matchField(String field) {
        if ("areaCode".equals(field))
            return "area_code";
        else if ("ispCode".equals(field))
            return "isp_code";
        else if ("mnCount".equals(field))
            return "mn_count";
        return null;
    }
}
